package com.lvmama.rhino.pojo.comment.query;

/**
 * @Author:caoyong
 * @Description:
 * @Date：2017/9/20
 */
public class ProductCommentTypeRankQuery {
    /**
     * 评论类型，对应EnumForComment中的value
     */
    private Integer commentType;

    /**
     * 最近多少天
     */
    private Integer days;

    /**
     * 前多少条
     */
    private Integer limit = 10;

    /**
     * 是否取消分页
     */
    private Boolean cancelLimit = Boolean.FALSE;
    /**
     * 产品id
     */
    private String productId;

    public Integer getCommentType() {
        return commentType;
    }

    public void setCommentType(Integer commentType) {
        this.commentType = commentType;
    }

    public Integer getDays() {
        return days;
    }

    public void setDays(Integer days) {
        this.days = days==0? null: days;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public Boolean getCancelLimit() {
        return cancelLimit;
    }

    public void setCancelLimit(Boolean cancelLimit) {
        this.cancelLimit = cancelLimit;
    }

    @Override
    public String toString() {
        return "ProductCommentTypeRankQuery{" +
                "commentType=" + commentType +
                ", days=" + days +
                ", limit=" + limit +
                ", cancelLimit=" + cancelLimit +
                ", productId='" + productId + '\'' +
                '}';
    }
}
